﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ggHD.Domain.Repisitories;
using LinqToDB.Mapping;

namespace ggHD.Domain.BizObj
{
    [Table(Schema = "dbo", Name = "RawMails")]
    public class MailHeader : IEntity<long>
    {
        [PrimaryKey, Identity]
        public long Id { get; set; } // bigint
        [Column, Nullable]
        public string MsgId { get; set; } // nvarchar(256)
        [Column, NotNull]
        public string MsgUid { get; set; } // nvarchar(256)
        [Column, Nullable]
        public string MsgSubject { get; set; } // nvarchar(256)
        [Column, Nullable]
        public string FromAddress { get; set; } // nvarchar(256)
        [Column, Nullable]
        public string FromName { get; set; } // nvarchar(256)
        [Column, Nullable]
        public string MailAccount { get; set; } // nvarchar(256)
        [Column, Nullable]
        public DateTime? DateSent { get; set; } // datetime
        [Column, Nullable]
        public DateTime? DateLoaded { get; set; } // datetime

        [Column("Id"), Identity]
        public long Key { get; set; }
    }
}
